const mysql = require("mysql");

const config={
    host : '124.220.108.105',
    port : 3306,
    user : 'sa',
    password : 'rice',
    database : 'chuanganqidata'
}

const connection = mysql.createConnection(config);

connection.connect(function (err) {
    if (err) throw err;
    console.log('Connected to the database.');
})

module.exports = connection;
